{template admin_improt}
<script language="javascript">
KE.show({        
	id : 'content', //TEXTAREA输入框的ID    
	resizeMode : 1,
    cssPath : './index.css',
    urlType: 'absolute',
    items : [
    'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
    'removeformat', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
    'insertunorderedlist', 'emoticons', 'image', 'link']
});
</script>
<style type="text/css">
<!--
.errorStyle{width:750px;margin:5px;padding:5px;background:#FFD4C9;border:1px solid #FF724F;}
-->
</style>

<div class="mainStyle">
	<div class="mainTitle">
		<span class="mainTitle_text">
			合作机构管理
		</span>
	</div>
	{if $errtitle}<div class="errorStyle">{$errtitle}</div>{/if}
	{if $errurl}<div class="errorStyle">{$errurl}</div>{/if}
	{if $errurls}<div class="errorStyle">{$errurls}</div>{/if}
	{if $path_err}<div class="errorStyle">{$path_err}</div>{/if}
	{if $paths_err}<div class="errorStyle">{$paths_err}</div>{/if}
	<form action="admin.php?p=agency&a=agencysave" method="post" enctype="multipart/form-data">
		<table width="100%"  border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="11%" height="36" align="right">机构名称：</td>
				<td width="89%">
					<input type="text"name="title" id="title" style="width:300px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['title']}"/> <span style="color:red;">*</span>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">机构地址：</td>
				<td width="89%">
					<input type="text"name="address" id="address" style="width:300px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['address']}"/>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">机构电话：</td>
				<td width="89%">
					<input type="text"name="tel" id="tel" style="width:300px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['tel']}"/>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">机构邮箱：</td>
				<td width="89%">
					<input type="text"name="email" id="email" style="width:300px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['email']}"/>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">机构网址：</td>
				<td width="89%">
					<input type="text"name="url" id="url" style="width:300px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['url']}"/> <span style="color:red;">*地址必须以 http:// 开头</span>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">联系人姓名：</td>
				<td width="89%">
					<input type="text"name="name" id="name" style="width:300px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['name']}"/>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">联系人电话：</td>
				<td width="89%">
					<input type="text"name="mobile" id="mobile" style="width:300px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['mobile']}"/>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">QQ号码：</td>
				<td width="89%">
					<input type="text"name="qq_id" id="qq_id" style="width:300px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['qq_id']}"/>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">QQ微博：</td>
				<td width="89%">
					<input type="text"name="qq_url" id="qq_url" style="width:300px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['qq_url']}"/> <span style="color:red;">地址必须以 http:// 开头</span>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">新浪微博：</td>
				<td width="89%">
					<input type="text"name="sina_url" id="sina_url" style="width:300px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['sina_url']}"/> <span style="color:red;">地址必须以 http:// 开头</span>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">来源：</td>
				<td width="89%">
					<input type="text"name="source" id="source" style="width:300px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['source']}"/>
				</td>
			</tr>
	        <tr>
				<td height="39" align="right">LOGO：</td>
				<td>
					<input name="s_img_url" type="file"  style="width:250px;padding:3px;border:1px solid #bbbbbb;" /><span style="margin-left:10px;color:#ff0000">(*只能使用jpg或者gif格式)</span> 
					<div id="imgDiv_min"></div>
					<div id="imgDiv_min_old"><!--{if $data["s_img_url"] != ""}--> <a href="data/upImage/{$data['s_img_url']}" target="_blank"><img width="100" height="100" src="data/upImage/{$data['s_img_url']}" border="0"/></a><!--{/if}--></div>
				</td>
	        </tr>
	        <tr>
				<td height="39" align="right">banner图：</td>
				<td>
					<input name="b_img_url" type="file"  style="width:250px;padding:3px;border:1px solid #bbbbbb;" /><span style="margin-left:10px;color:#ff0000">(只能使用jpg或者gif格式)</span> 
					<div id="imgDiv_min"></div>
					<div id="imgDiv_min_old"><!--{if $data["b_img_url"] != ""}--> <a href="data/upImage/{$data['b_img_url']}" target="_blank"><img width="100" height="100" src="data/upImage/{$data['b_img_url']}" border="0"/></a><!--{/if}--></div>
				</td>
	        </tr>
			<tr>
				<td width="11%" height="36" align="right">机构简介：</td>
				<td width="89%">
					<textarea id="content" name="content" style="width:600px;height:300px;">{$data["content"]}</textarea>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">是否有效：</td>
				<td width="89%">
					<input type="radio" name="is_ok" id="is_ok" {if $data['is_ok'] == 2}checked="checked"{/if} value="2" >是
					<input type="radio" name="is_ok" id="is_ok" {if $data['is_ok'] == 1}checked="checked"{/if} value="1">否
				</td>
			</tr>		
			<tr>
				<td height="48" align="right"></td>
				<td>
					<input type="hidden" id="active_type" name="active_type" value="{$active_type}">
					<input type="hidden" id="agency_id" 	name="agency_id" 		value="{$data['agency_id']}">
					<input type="submit" name="Submit" value=" 保存 " />
				</td>
			</tr>
		</table>
	</form>
</div>
{template admin_bottom}